# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
# Contributor: Stefan Wagner <stw@bit-strickerei.de>
# Maintainer: Stefan Wagner <stw@bit-strickerei.de>
pkgname=xdotool
pkgver=3.20160805.1
pkgrel=1
pkgdesc="Simulate keyboard/mouse input"
url="https://github.com/jordansissel/xdotool"
arch="all"
license="BSD-3-Clause"
depends_dev="libx11-dev libxtst-dev libxinerama-dev libxkbcommon-dev"
makedepends="$depends_dev perl"
source="$pkgname-$pkgver.tar.gz::https://github.com/jordansissel/xdotool/archive/v$pkgver.tar.gz"
subpackages="$pkgname-dev $pkgname-doc"

build() {
	make WITHOUT_RPATH_FIX=1
}

package() {
	make DESTDIR="$pkgdir" PREFIX=/usr INSTALLMAN=/usr/share/man install
}

sha512sums="cf0b1c31e63a43759ff3f081f3b005dd9fe9cabd2f606d7d1238c7ea9c0526681f6ad7883c69ab9194d19a9584c3707f10306be1e826e5953da30838007dd471  xdotool-3.20160805.1.tar.gz"
